<!DOCTYPE html>
<html xmlns:wb="http://open.weibo.com/wb">

<head>
    <title>虎扑跑步</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta property="qc:admins" content="25473502076605056375" />
    <meta property="wb:webmaster" content="b9284cb3b07be6b2" />
    <script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=3771780362" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="wb_connect_btn" onclick="window.location.href='{$url}'">
    <wb:login-button type="3,5" onlogin="login" onlogout="logout">登录按钮</wb:login-button>
</div>

<script>
    WB2.anyWhere(function(W){
        W.widget.connectButton({
            id: "wb_connect_btn",
            type:"3,5",
            callback : {
                login:function(o){	//登录后的回调函数
                },
                logout:function(){	//退出后的回调函数
                }
            }
        });
    });
</script>
</body>
</html>